#include <iostream>

class animal {
private:
        int age;
        int sex;

public:
        void setage(int a)
        {
                age = a;
        }

        int getage(void)
        {
                return age;
        }

        void eat(void)
        {
                std::cout << "eat..." << std::endl;
        }

        void sleep(void);
};

void animal::sleep(void)
{
        std::cout << "sleep..." << std::endl;
}

using namespace std;

int main()
{
        animal a, b;

        a.eat();
        a.sleep();

        a.setage(6);
        b.setage(7);

        cout << a.getage() << ", " << b.getage() << endl;

        cout << "sizeof(animal): " << sizeof(animal) << endl;

        return 0;
}
